package top.amot.forceview.theme

import android.content.Context
import android.graphics.Color
import android.graphics.Paint
import android.text.TextPaint
import top.amot.forceview.ForceDrawer
import top.amot.forceview.util.UiUtil

class DefaultLinkStyle(context: Context,
                       override var linkPaint: Paint = Paint(Paint.ANTI_ALIAS_FLAG),
                       override var linkTextPaint: TextPaint = TextPaint(Paint.ANTI_ALIAS_FLAG)
) : I_LinkStyle {

    init {
        linkTextPaint.textAlign = Paint.Align.CENTER
        linkTextPaint.textSize = UiUtil.sp2px(context, ForceDrawer.DEFAULT_TEXT_SIZE_SP.toDouble()).toFloat()
    }

    override val linkColor: Int
        get() = Color.GRAY
    override val selectLinkColor: Int
        get() = Color.GRAY
}